package com.zm.service.Impl;

import com.zm.entity.Student;
import com.zm.mapper.StudentMapper;
import com.zm.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @Author:Domen
 * @Date:2024/5/23 15:46
 */

public class StudentServiceImpl implements StudentService {

    @Autowired
    private StudentMapper studentMapper;
    public int add(Student student) {
        int count = studentMapper.insert(student);
        return count;
    }

    public Student getById(Integer id) {
        return studentMapper.getById(id);
    }
}
